<?php 
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = $show_header = 1; 
include $this->admin_tpl('header_v2.0', 'admin');
?>
<div id="content"> 
    <div class="row">
        <article id="widget-grid" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <div class="well well-sm">
<!--                <a class="btn btn-primary" href="index.php?m=shuafen&c=index&a=add_trips&id=--><?php //echo $info['id']?><!--&menuid=--><?php //echo $_GET['menuid']?><!--&pc_hash=--><?php //echo $_SESSION['pc_hash']?><!--"><i class="fa fa-arrow-circle-right"></i>&nbsp;添加</a>-->
             </div>
             <div class="jarviswidget jarviswidget-color-darken" id="trips_list_<?php echo $_GET['menuid']?>" data-widget-editbutton="false"data-widget-togglebutton="false"  data-widget-deletebutton="false" data-widget-fullscreenbutton="false">
                <header>
                      <span class="widget-icon"> <i class="fa fa-table txt-color-white"></i> </span>
                     <h2>提示栏</h2>
                </header>
                <div>
                    <div class="widget-body no-padding">
                        <form name="myform" id="myform" action="?m=shuafen&c=space&a=delete" method="post" class="form-horizontal">
                            <div class ="table-content">
                                <table width="100%" cellspacing="0" class="table  pinned table-bordered  table-striped table-condensed ">
                                    <thead>
                                        <tr>
                                            <th width='50'><strong>ID</strong></th>
                                            <th width="100"><strong>提示语</strong></th>
                                            <th width="100"><strong>创建时间</strong></th>
                                            <th width="50"><strong>修改时间</strong></th>
                                            <th width="80"><?php echo L('operations_manage')?></th>
                                        </tr>
                                    </thead>
                                </table>
                                <table width="100%" cellspacing="0" class="table table-bordered  table-striped table-condensed table-hover">
                                    <thead>
                                        <tr>
                                            <th width='50'><strong>ID</strong></th>
                                            <th width="100"><strong>提示语</strong></th>
                                            <th width="100"><strong>创建时间</strong></th>
                                            <th width="50"><strong>修改时间</strong></th>
                                            <th width="80"><?php echo L('operations_manage')?></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php 
                                            if(is_array($infos)){
                                                foreach($infos as $info){
                                        ?>
                                    <tr>
                                        <td ><?php echo $info['id'];?></td>
                                        <td ><?php echo $info['tip_name']?></td>
                                        <td><?php echo $info['create_time']?date('Y-m-d',$info['create_time']):''?></td>
                                        <td><?php echo $info['update_time']?date('Y-m-d',$info['update_time']):''?></td>
                                        <td>
                                            <input type="hidden" name="id" value="{$info['id']}" />
                                          <div class="btn-group">
                                              <a class="btn bg-color-blueDark txt-color-white  " href="index.php?m=shuafen&c=index&a=add_trips&action=edit&id=<?php echo $info['id']?>&menuid=<?php echo $_GET['menuid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>" >
                                                  <i class="fa fa-info"></i> <?php echo  L('edit')?>
                                              </a>
                                              <!-- <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
                                                  <span class="caret"></span>
                                              </button> -->
<!--                                              <ul class="dropdown-menu">-->
<!--                                                  <li>-->
<!--                                                       <a href="javascript:void(0);" class="mode-alert" data-title="删除！" data-msg="确认是否删除" data-href="?m=shuafen&c=index&a=delete_trips&id=--><?php //echo $info['id']?><!--"><i class="fa fa-trash-o"></i> 删除</a> -->
<!--                                                  </li>-->
<!--                                              </ul>-->
                                          </div>
                                        </td>
                                    </tr>  

                                        <?php
                                        }
                                    }
                                    ?>
                                    </tbody>
                                </table>

                               <div class="widget-footer">
                                 <div id="pages"><?php echo $pages;?></div>

                                </div>
                            </div>
                        </form>
                    </div>
				</div>
             </div>
        </article>
    </div>
</div>
<!-- 
<div class="pad-lr-10">
<form name="myform" action="?m=shuafen&c=space&a=delete" method="post" id="myform">
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th width="6%" align="center">ID</th>
			<th width="12%" align="center">提示语</th>
			<th width='10%' align="center">创建时间</th>
			<th width="10%" align="center">修改时间</th>
			<th width="28%" align="center"><?php echo L('operations_manage')?></th>
            </tr>
        </thead>
    <tbody>
 <?php 
if(is_array($infos)){
	foreach($infos as $info){
?>   
	<tr>
	<td width="6%"  align="center"><?php echo $info['id']?></td>
	<td width="12%" align="center"><?php echo $info['tip_name']?></td>
	<td width='10%' align="center"><?php echo $info['create_time']?date('Y-m-d',$info['create_time']):''?></td>
	<td width="10%" align="center"><?php echo $info['update_time']?date('Y-m-d',$info['update_time']):''?></td>
	<td width="28%" align="center">
	<a href="index.php?m=shuafen&c=index&a=add_trips&action=edit&id=<?php echo $info['id']?>&menuid=<?php echo $_GET['menuid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>">修改</a> |
	<a href='?m=shuafen&c=index&a=delete_trips&id=<?php echo $info['id']?>' onClick="return confirm('<?php echo L('confirm', array('message' => addslashes(new_html_special_chars($info['name']))))?>')"><?php echo L('delete')?></a>
	</td>
	</tr>
<?php 
	}
}
?>
</tbody>
    </table>
 <div id="pages"><?php echo $pages?></div>
</form>
</div> -->
</body>
</html>